<?php

include 'core/core.php';
CCore::Using('base.http');
CCore::Using('labs.pop3server');

$oHttp = new CCoreBaseHttp();
$sCmd = $oHttp->GetRequest('cmd', '');

$oWebPop3Server = new CCoreLabsPop3Server('examples/filestorage.pop3');
echo (null === $oHttp->GetRequest('webstreams', null))
		? '<pre>'.htmlspecialchars($oWebPop3Server->Response($sCmd))
		: $oWebPop3Server->Response($sCmd);
